<template>
  <section class="my-parttime">
    <div class="item flex flex-between flex-middle" v-for="item in list" :key="item.headImgUrl">
      <div class="flex flex-between flex-middle">
        <img :src="item.headImgUrl" alt="">
        <div class="title">{{item.nickName}}</div>
      </div>
      <div class="desc">
        {{item.regTime}}
      </div>
    </div>
  </section>
</template>
<script>
export default {
  data() {
    return {
      list:''
    };
  },
  onShow() {
    this.$api.myTeam().then(res=>{
      this.list = res.data.memberList;
    })
  },
  methods: {
    routerTo(url) {
      wx.navigateTo({ url });
    }
  }
};
</script>
<style lang="scss" scoped>
.my-parttime {
  .item {
    margin:0 15px;
    background: white;
    padding: 15px 0;
    border-radius: 4px;
    &:not(:last-child){
      border-bottom: 1px solid #F7F7F7;
    }
    .title {
      font-size: 13px;
      font-family: PingFang;
      font-weight: 500;
      color: rgba(46, 46, 46, 1);
    }
    .desc {
      font-size: 12px;
      font-family: PingFang;
      font-weight: 500;
      color: rgba(193, 196, 201, 1);
    }
    img {
      width: 40px;
      height: 40px;
      border-radius: 100%;
      margin-right: 10px;
    }
  }
}
</style>
<style lang="scss">
</style>